package com.vicene.gmail.search.vo;

import com.vicene.gmail.common.to.es.SkuEsModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class SearchResult {

    //商品信息
    private List<SkuEsModel> products;

    //分页信息-------------------》
    //当前页
    private Integer pageNum;

    //总记录
    private Long total;

    //总页数
    private Integer totalPages;

    private List<Integer> pageNavs;

    //分页信息-------------------《

    //品牌信息
    private List<BrandVo> brands;

    //规格参数信息
    private List<AttrVo> attrs;

    //涉及分类信息
    private List<CatalogVo> catalogs;

    //面包屑导航
    private List<NavVo> navs = new ArrayList<>();

    private List<Long> attrIds;

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class CatalogVo {
        private Long catalogId;

        private String catalogName;
    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class BrandVo {
        private Long brandId;

        private String brandName;

        private String brandImg;
    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class AttrVo {
        private Long attrId;

        private String attrName;

        private List<String> attrValue;
    }

    @Data
    public static class NavVo{
        private String navName;
        private String navValue;
        private String link;
    }
}
